//
//  AsyncGetModel.h
//  UI_豆瓣
//
//  Created by 付正 on 14-11-7.
//  Copyright (c) 2014年 付正. All rights reserved.
//
#define NewsHotUrl @"http://api.chunyuyisheng.com/api/news/?news_types=&topic=1&platform=iPhone&systemVer=7.1.2&version=5.5.0&vendor=ziyou&phoneType=iPhone&device_id=fe70a2b4d523446884ca322d671fb995&push_id=&app=0&_t=1416215213&count=20&page=1&start_num=0"

#define NewsChildUrl @"http://api.chunyuyisheng.com/api/news/?news_types=MYBJ&topic=1&platform=iPhone&systemVer=7.1.2&version=5.5.0&vendor=ziyou&phoneType=iPhone&device_id=fe70a2b4d523446884ca322d671fb995&push_id=&app=0&_t=1416213436&count=20&page=1&start_num=0"

#define NewsSexUrl @"http://api.chunyuyisheng.com/api/news/?news_types=XLQX,LXXZ&topic=1&platform=iPhone&systemVer=7.1.2&version=5.5.0&vendor=ziyou&phoneType=iPhone&device_id=fe70a2b4d523446884ca322d671fb995&push_id=&app=0&_t=1416215537&count=20&page=1&start_num=0"

#define NewsEmotionUrl @"http://api.chunyuyisheng.com/api/news/?news_types=QGXL&topic=1&platform=iPhone&systemVer=7.1.2&version=5.5.0&vendor=ziyou&phoneType=iPhone&device_id=fe70a2b4d523446884ca322d671fb995&push_id=&app=0&_t=1416214781&count=20&page=1&start_num=0"


#import <Foundation/Foundation.h>


typedef void(^FinishdedBlock)(NSMutableData *data);



@interface AsyncGetModel : NSObject<NSURLConnectionDataDelegate>

@property (nonatomic, retain) NSMutableData *data;

@property (nonatomic, copy) FinishdedBlock finishedBlock;



+ (NSString *)urlWithUrlStr:(NSString *)urlstr parmaters:(NSDictionary *)parmaters;
- (void)startWithUrl:(NSString *)urlstr parmaters:(NSDictionary *)parmaters;

+ (void)asyncWithUrl:(NSString *)urlstr dic:(NSMutableDictionary *)dic block:(FinishdedBlock)block;


@end
